﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace opSysPower.IServices
{
    public interface  IDataService<T> where T:class 
    {
         T Query(params string[] str);
         T Query(params KeyValuePair<string,string>[] keyValuePair);

         T Query(KeyValuePair<object, object>[] dic);
         T Query(KeyValuePair<object, object> keyValuePair);

         object Query(object obj);
         object Query(string str);


         IEnumerable<T> QueryAll(params KeyValuePair<object, object>[] keyValuePair);
         

         bool Update(T entity);
         bool Insert(T entity);
         bool Delete(T entity);
    }
}
